<html>
<body>
Reports collectors that can be simplified.
<p>In particular, some cascaded <code>groupingBy()</code> collectors can be expressed by using a
  simpler <code>toMap()</code> collector, which is also likely to be more performant.</p>
<p>Example:</p>
<pre><code>
  Collectors.groupingByConcurrent(String::length, Collectors.collectingAndThen(Collectors.maxBy(String::compareTo), Optional::get));
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  Collectors.toConcurrentMap(String::length, Function.identity(), BinaryOperator.maxBy(String::compareTo));
</code></pre>
<!-- tooltip end -->
<p><small>New in 2017.1</small></p>
</body>
</html>